package com.tailyou.androidlearning202400.kl

// 定义一个函数calculateArea，接受两个参数：length和width，返回矩形的面积
fun calculateArea(length: Double, width: Double): Double {
    return length * width
}

// 调用函数并打印结果
fun main() {
    val length = 5.0
    val width = 3.0
    val area = calculateArea(length, width)
    println("The area of the rectangle is: $area")
}